import request from '@/utils/request'

//获取用户列表
export const getUserList = (params) => {
    return request('/api/getUserList', {
        params,
    })
}

//获取部门列表
export const getDeptList = (params) => {
    return request('/api/getDept', {
        params,
    })
}

//获取菜单列表
export const getMenuList = () => {
    return request('/api/getMenuList')
}

//获取用户信息
export const getUserInfo = () => {
    return request('/api/getUserInfo')
}

//用户登录
export const MockUserLogin = () => {
    return request('/api/userLogin')
}

//用户登录
export const MockGetDict = () => {
    return request('/api/getDict')
}

//用户登录
export const MockGetTableList = (params) => {
    return request('/api/getTableList', {
        method: 'post',
        data: params,
    })
}

//获取部门树
export const MockGetTreeDept = () => {
    return request('/api/getTreeDept', {
        method: 'post',
    })
}

//获取部门树
export const MockGetUserList = () => {
    return request('/api/getUserList', {
        method: 'post',
    })
}
